<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1>用户列表</h1>
<table border="1" width="800">
    <tr>
        <th>ID</th>
        <th>NAME</th>
        <th>SEX</th>
        <th>AGE</th>
        <th>PRO</th>
    </tr>
    {{foreach $list as $v}}
    <tr>
        <td>{{$v['id']}}</td>
        <td>{{$v['name']}}</td>
        <td>
            {{if $v['sex'] == 0}}女
            {{elseif $v['sex'] == 1}}男
            {{else}}保密
            {{/if}}
        </td>
        <td>{{$v['age']}}</td>
        <td>{{$v['province']}}</td>
    </tr>
    {{/foreach}}
</table>

</body>
</html>